package cn.com.infcn.spring.beans.cycle;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		test();
	}

	public static void test() {
		// 1. 创建 Spring 的 IOC 容器
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans-cycle.xml");

		ICar car = (ICar) ctx.getBean("car");
		System.out.println(car);
		ICar car2 = (ICar) ctx.getBean("car");
		System.out.println(car2);
	}

}
